package cn.dogeye.controller;


import cn.dogeye.common.protocol.Result;
import cn.dogeye.service.MovieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MovieController {
    @Autowired
    MovieService movieService;
    @GetMapping("/movie")
    public Result getMovie() {
        return Result.succ(movieService.list());
    }
}
